{% extends "AcmeDemoBundle::employee.html.twig" %} {% block javascript
%}

<script type="text/javascript">

$(function(){
	
        $("#button_ok").click(function() {
        	
        	if($("#lydo").val() == ""){
        		
                alert("Xin chọn lý do thôi việc !");
                $("#lydo").focus();
                return;
            }
            
            $("#form").attr("action", "{{ path('acme_NhanVien_del_ok') }}" +"/"+ {{id}});
            $("#form").submit();
        });
      
      
    });

</script>
{% endblock %} {% block content %}
<div class="grid_16">
	<!-- TABS START -->
	<div id="tabs">
		<div class="container">
			<ul>
				<li><a href="{{ path('acme_NhanVien_list') }}/1"><span>Danh sách nhân viên</span></a></li>
				<li><a class="current" href="{{ path('acme_NhanVien_input') }}"><span>Thêm nhân viên</span></a></li>
			</ul>
		</div>
	</div>
	<!-- TABS END -->
</div>
<div class="grid_16" id="content">
	<form method="POST" id="form">
	        <input type="hidden" name="hi_hoten" value="{{filter.hoten}}">
           <input type="hidden" name="hi_phongban" value="{{filter.phongbanid}}">
           <input type="hidden" name="hi_trinhdo" value="{{filter.trinhdoid}}">
           <input type="hidden" name="hi_chucvu" value="{{filter.chucvuid}}">
           <input type="hidden" name="hi_lydo" value="{{filter.lydoid}}">
		<div class="grid_16">
			<h1 class="users">Thôi việc nhân viên</h1>
		</div>

		  <div class="grid_16">
		  <label>Thôi việc nhân viên {{hoten}}</label>
		 <label>Lý do</label>
		<select name="lydo" id="lydo">
		  <option value="" selected="selected">Chọn lý do</option>
		  {% for lydo in lstlydo %}
		    <option value="{{lydo.id}}">{{lydo.ten}}</option>
		  {% endfor %}
		</select>
		
		
		</div>
		<div class="grid_16">
            <a class="button_ok" id="button_ok"> <span>Đồng ý</span>
            </a> <a class="button_notok" id="button_notok"  href="{{ path('acme_NhanVien_list') }}/1"> <span>Hủy</span>
            </a>
        </div>
	</form>
</div>
{% endblock %}
